package com.gugee.common.web.util.paypal;
import com.gugee.common.web.util.paypal.core.PayPalEnvironment;
import com.gugee.common.web.util.paypal.core.PayPalHttpClient;
import com.paypal.http.HttpClient;

import java.util.Arrays;

public class TestHarness {

    private HttpClient client;
    private PayPalEnvironment environment;
    {
        setup();
    }

    public void setup() {
        environment = new PayPalEnvironment.Sandbox(
                "ATNuULnRo3dQONIyLtt9hirbIIgGYQnzcXOMrGlYQUKL3E_2uQ0JbvaetBOvKWpDqPZqB-ISi2ZIWWKQ",
                "EC8VdkJczzD2GdcFMGOyodfvL4TlgTpuDWOgtc5bO3tmJIQ4VF-YGwMmIhfNZ0itKaZjasKO7c0fO9YA");
        client = new PayPalHttpClient(environment);
    }

    protected HttpClient client() {
        return client;
    }

    protected PayPalEnvironment environment() {
        return environment;
    }

    public static void main(String[] args) {
        String [] bb = new String[]{"1","2","3","4","5"};
        System.out.println(Arrays.toString(bb).substring(1,bb.length-1));
    }
}
